<html>
<head>
	<link href="<?php echo _get_cfg_path('admin_css')?>base.css" rel="stylesheet" type="text/css" />
	<link href="<?php echo _get_cfg_path('admin_css')?>common.css" rel="stylesheet" type="text/css" />
	<link href="<?php echo _get_cfg_path('admin_css')?>main.css" rel="stylesheet">
    <link href="<?php echo _get_cfg_path('admin_css')?>right.css" rel="stylesheet">

</head>

<body>

<div class="right_con common">

	<h1>风格管理</h1>
	<table cellpadding="0" cellspacing="0" bordercolor="#eee" border="0" width="100%">
		<tr>
            <td height="32">
                <form class="form-horizontal" role="form" method="post">
                    <input type="text" name="txtKey" value="<?php echo !empty($arrParam['key']) ? $arrParam['key']:'';?>">
                    <button type="submit" class="btn"> 查  询</button>
                  </form>
            </td>
        <td><a href='/admin/style/add' class="sub">添加</a></td>
        </tr>
    </table>
	<table cellpadding="0" cellspacing="0" align="center" bordercolor="#eee" border="1" width="100%" class="listTab">
		<tbody>
			<tr height="39" style="font-size:13px;">
                <td width="250" height="25" align="center">名称</td>
                <td>分类名称</td>  
                <td>是否显示</td>
	            <td>操作</td>
	        </tr>
	        <?php foreach ($list['rows'] as $key => $a): ?>
                <tr>
                <td height="30"><?php echo $a['name'];?></td>
                <td><?php echo $style[$a['s_style']]?></td>
                <td><?php echo !empty($a['is_show']) ? '显示' : '不显示'?></td>
                    <td class="con_title"> 
                        <a href="/admin/style/show?id=<?php echo _get_key_val($a['id']);?>"><?php echo (empty($a['is_show'])) ? '显示' : '不显示';?></a>
                        <a href="/admin/style/add?id=<?php echo _get_key_val($a['id']);?>">修改</a>
                        <a href="/admin/style/del?id=<?php echo _get_key_val($a['id']);?>">删除</a>
                    </td>
                </tr>
                <?php endforeach;?>
			
	    </tbody>
	</table>
	<table cellpadding="0" cellspacing="0" bordercolor="#eee" border="0" width="100%">
		<tr>
            <td colspan="2" height="32" align="right">
                <div class="page">
                	<?=$list['pages']?>
                </div>
            </td>
        </tr>
    </table>
</div>

<script type="text/javascript" src="<?php echo _get_cfg_path('lib')?>My97DatePicker/WdatePicker.js"></script>

<?php include_once(VIEWPATH."admin/publish/main_footer.php");?>
</body>
</html>
